package cn.car91.activity;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import cn.car91.R;
import cn.car91.utils.ImageManager;
import cn.car91.view.HerilyAlertDialog.Builder;

import com.lidroid.xutils.view.annotation.ViewInject;

public class RepairShopCreditActivity extends BaseActivity {
  
  @ViewInject(R.id.repairshop_credit_license)
  ImageView licenseView;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    setContentView(R.layout.activity_repairshop_credit);
    super.onCreate(savedInstanceState);
    
    try {
      ((TextView) findViewById(R.id.header_text)).setText(getIntent().getStringExtra("repairshop_name"));
      String credit = getIntent().getStringExtra("repairshop_credit");
      ImageManager imageManager = new ImageManager(this, "sdcard/car91/temp/repairshop/license");
      imageManager.displayImage(getCar91Application().getCenterServerUrl()+"/"+credit, licenseView, getResources().getDrawable(R.drawable.licpicdefault));
    } catch (Exception e) {
      new Builder(this).setMessage("数据加载异常").create().show();;
    }
    
  }

}
